﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using DALScolarite;
namespace Scolarite 
{
    public partial class ListeFormation : Form
    {
        public ListeFormation()
        {
            InitializeComponent();
        }

        private void ListeFormation_Load(object sender, EventArgs e)
        {
            scolarite_eltdiplomeBindingSource.DataSource = GlobalParams.MonDbcontext.scolarite_eltdiplome.ToList();
        }

        private void scolarite_eltdiplomeDataGridView_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            DataGridViewRow row = this.scolarite_eltdiplomeDataGridView.Rows[e.RowIndex];

            FicheFormation fiche = new FicheFormation();
            fiche.MdiParent = this.MdiParent;
            fiche.loadingmod = modeload.INFO;
            fiche.idEltDiplome = (string) row.Cells[0].Value;
            fiche.Show();
        }

        private void scolarite_eltdiplomeDataGridView_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {

        }
    }
}
